﻿@{
    ViewBag.Title = "ShowNotify";
    Layout = "~/Views/Shared/_Layout2.cshtml";
    var lst = ViewData["lst"] as List<SmallJob.Model.MMessage>;
}
<style>
</style>
<div class="service-detail">
    <div class="service-detail-container">
        <div class="conversation-detail-inner" style="max-height:300px;">
            @if (lst.Count <= 0)
            {
                <li>Không có nhắc nhở nào cho bạn
                </li>
            }
            @foreach (var item in lst)
            {
                 var sender = (item.SenderID == (int)SmallJob.Model.EUserID.SystemUser ? null : (item.SenderID == item.Parent.Person1ID ? item.Parent.User1 : item.Parent.User2));
                <div class="conversation-message" style="">
                    <div class="conversation-avatar pull-left">
                        <img style="width:32px;height:32px;" src="@(sender == null ?"https://fbcdn-profile-a.akamaihd.net/hprofile-ak-prn2/276736_493733973997031_1129115008_q.jpg" : (string.IsNullOrWhiteSpace(sender.Avatar) ? Url.Content("~/Content/img/blank-avatar.jpg") : sender.Avatar)+"?w=32&h=32&q=90&format=jpg&mode=crop")" />
                    </div>
                    <div class="conversation-body">
                        <p class="inbox-meta">
                            <a   class="inbox-sender" href="/@(sender == null ? "Home/Index" : (string.IsNullOrWhiteSpace(sender.UserName) ? sender.ID.ToString() : sender.UserName))">@(sender == null ? "Việc Nhỏ" : sender.Name)  </a>
                            : @item.Content

                        </p>
                        <p>
                            <span class="pull-left label label-important" >New</span>
                            <span class="inbox-date pull-right" >@string.Format("{0:t}", item.Date)</span>
                        </p>
                    </div>
                    <div style="clear: both;"></div>
                </div>
            }
        </div>
    </div>
</div>
<script>

</script>
